<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>后台管理</title>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="admin.css" />
<script src="jquery-2.1.1.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<block name="top">
  <div class="container-fluid head">
    <div class="row">
        <nav class="navbar navbar-inverse ">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <a class="navbar-brand" href=""><div class="logo"><img src="Img/alex.ico"/></div></a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="active"><a href="">会员 <span class="sr-only">(current)</span></a></li>
        <li><a href="">商品</a></li>
        <li><a href="">博文管理</a></li>
        <li><a href="">分类管理</a></li>
        <li><a href="">订单管理</a></li>
        <li><a href="">留言管理</a></li>
      </ul>
      <form class="navbar-form navbar-left" role="search">
        <div class="form-group">
          <input type="text" class="form-control" placeholder="Search">
        </div>
        <button type="submit" class="btn btn-default">Submit</button>
      </form>
      <ul class="nav navbar-nav navbar-right">
        <li><a href="">后台管理系统</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">用户 <span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu">
            
            <li><a href="">退出登录</a></li>
          </ul>
        </li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
    </div>
  </div>
</block>
<div class="container-fluid ">
  <div class="row">
    
      <div class="pull-left col-md-3 left">
      <ul class="list-group">
        <li class="list-group-item">商品管理
          <ul class="list-group">
            <li class="list-group-item"><a href="">新增商品</a></li>
            <li class="list-group-item"><a href="">商品列表</a></li>
          </ul>
        </li>
      </ul>
      </div>
      <div class="pull-right col-md-9 right">
      <table class="table table-striped table-hover">
      <thead>
        <th>Uid</th>
        <th>商品名称</th>
        <th>商品数量</th>
        <th>商品发布时间</th>
        <th>商品状态</th>
        <th>操作</th>
      </thead>
      <tbody>
        <foreach name="goods_list.lists" item="ul">
        <tr>
          <td>{$ul.id}</td>
          <td>{$ul.goodsname}</td>
          <td>{$ul.num}</td>
          <td>{$ul.create_time}</td>
          <td>{$ul.status}</td>
          <td><button type="button" class="btn btn-primary" data-toggle="modal" data-target="#editModal">编辑</button> <a href="">删除</a></td>
          <!-- 编辑弹出框 -->
            <div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
              <div class="modal-dialog">
                <div class="modal-content">
                  <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">编辑框</h4>
                  </div>
                  <div class="modal-body">
                    <div class="form-group">
                            <label for="exampleInputGoods">用户名</label>
                            <input name="goodsname" type="text" class="form-control" id="exampleInputGoods" placeholder
                              ="" value="{$goods_info.goodsname}">
                        </div>
                        <div class="form-group">
                          <label for="number">数量</label>
                          <input name="num" type="text" class="form-control" id="exampleInputNum" placeholder
                            ="" value="{$goods_info.num}">
                        </div>
                        <div class="form-group">
                          <select name="status" class="btn btn-primary"  value="{$goods_info.status}"  >  
                            <if condition="($goods_info.status eq 1)"> 
                                <option   value= "0"> 上架 </option>
                                <option   value= "1"  selected="selected" > 下架 </option>
                             <else />
                              <option   value= "0" selected="selected" > 上架 </option>
                                <option   value= "1" > 下架 </option>
                             </if> 
                              
                             
                          </select>
                     </div>
                  </div>
                  <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" href="#">确认</button>
                  </div>
                </div>
              </div>
            </div>
            <!--编辑弹出框结束-->
        </tr>
        </foreach>
      </tbody>
    <tfoot>
      <th colspan="6"></th>
    </tfoot>
    </table>
      </div>
    
  </div>
</div>
<block name="bottom">
  <nav class="navbar navbar-default navbar-fixed-bottom">
  <div class="container">
    <div class="img"></div>
    <div class="foot-text"><span>CopyRight by AlexGordon</span></div>
  </div>
</nav>
</block>
</body>
<script>

</script>
</html>